﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;


namespace mscook.core.domain
{
    public class Bulletin : Entity
    {
        public Bulletin()
        {
            Summary = "";
            Content = "";
        }
        [Required(ErrorMessage = "主题必填")]
        [StringLength(30, MinimumLength = 3, ErrorMessage = "主题必须为3-30位")]
        public virtual string Title { get; set; }

        public virtual string Summary { get; set; }
        // public virtual string Description { get; set; }

        [Required(ErrorMessage = "内容必填")]
        public virtual string Content { get; set; }
        public virtual string ImagePath { get; set; }


        [Required(ErrorMessage = "类型必填")]
        public virtual string Type { get; set; }
    }
}
